package cmd;

import javax.ws.rs.ApplicationPath;

import org.codehaus.jackson.jaxrs.JacksonJsonProvider;
import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.server.ResourceConfig;

@ApplicationPath("/api")

public class TestApp extends ResourceConfig{
    public TestApp() {
    	//服务类所在的包路径
        packages("cmd");
        //打印访问日志，便于跟踪调试，正式发布可清除 
        register(LoggingFilter.class);
        //注册数据转换器
         register(JacksonJsonProvider.class);
    }
}
